package com.linsen.erp.admin;

import com.linsen.core.cloud.util.BootstrapUtil;
import com.linsen.core.feign.annotation.EnableLinsenFeign;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author zhaoyong
 * @date 2023/7/22
 */
@EnableLinsenFeign
@SpringBootApplication
@ComponentScan(basePackages = {"com.linsen"})//解决SpringUtils（ApplicationContextAware）应用上下文初始化扫描注入的问题
public class ErpAdminServer {
    public static void main(String[] args) {
        BootstrapUtil.enableBootstrap();
        SpringApplication.run(ErpAdminServer.class, args);
    }
}
